package com.order.service;

import com.github.pagehelper.PageInfo;
import com.order.bean.Foods;
import com.order.bean.Order;
import com.order.bean.OrderDetail;
import com.order.bean.User;

import java.util.List;

public interface OrderService {

    int batchInsertDetail(List<OrderDetail> orderDetails);

    Order updateOrder(Order order);

    Order getUserNewOrder(Order order);

    Order checkOutOrder(Order order);

    PageInfo<Foods> selectPage(Integer userId, int pageNum, int pageSize);
}
